<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>欢迎登录后台管理系统</title>
<link href="__STATIC__/Admin/css/base.css" rel="stylesheet" type="text/css" />
<link href="__STATIC__/Admin/css/right.css" rel="stylesheet" type="text/css">
<link href="__STATIC__/css/page.css" rel="stylesheet" type="text/css">
<script src="__STATIC__/js/jquery-2.1.1.min.js"></script>
<script>
$(document).ready(function(){
   $(function(){
      $('.rightinfo tbody tr:odd').css("backgroundColor","#f5f8fa");
   });
   $(".imgact1").click(function(){
	   var id=$(this).parent().find("input[name='id']").val();
	   var img=($(this).attr("src")=='__STATIC__/Admin/image/no.gif') ? "__STATIC__/Admin/image/yes.gif":"__STATIC__/Admin/image/no.gif";
	   $(this).attr("src",img);
	   $.post("{:url('ajaxhbcode')}",{id:id},function(data){});
   });
});
</script>
</head>

<body>
<div class="place"> <span>位置：</span>
  <ul class="placeul">
    <li><a href="{:url('Index/center')}">首页</a></li>
    <li><a href="{:url('User/index')}">用户管理</a></li>
    <li>某某佣金等级</li>
  </ul>
</div>
<div class="rightinfo">
  
    <table class="tablelist">
    <thead>
      <tr>
        <th>佣金等级</th>
        <th>佣金比例</th>
        <!--<th>操作</th>-->
      </tr>
    </thead>
    <tbody>
    <form action="{:url('User/addSelf')}" method="post" id="add">
        {volist name="list" id="vo"}
            <tr height="45" align="center">
                <input type="hidden" name="hid[]" value="{$vo['id']}">
                <td><input type="text" name="auths[{$vo['id']}]" value="{$vo['type']}" style="width: 20px;">级</td>
                <td><input type="text" name="b[{$vo['id']}]" value="{$vo['baifenbi']}" style="width: 20px;">%</td>
          </tr>
        {/volist}
        <input type="hidden" name="uid" value="{$uid}">
    </form>
    </tbody>
  </table>
    <button id="true" style="width:120px;height: 40px;background-color: #337ab7;border-radius:5px;margin-top: 20px;margin-left: 90%;">保存</button>
</div>
</body>

<script>
    $(function () {
        $("#true").click(function () {
            $("#add").submit();
        });
    })
</script>
</html>